package cl.regalloc.parse;

/**
 * Hex String class
 * stores hex numbers as Integer objects
 * @author andyli
 *
 */

public class HexString implements Operand {

	private Long intValue;

	public HexString(String hexString) {
		System.out.printf("parsing hex string \"%s\"...%n", hexString);
		this.intValue = Long.parseLong(hexString, 16);
	}

	public String toString() {
		return ("0x" + Long.toHexString(intValue));
	}
}
